package com.youlai.system.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.system.model.entity.City;
import com.youlai.system.model.form.CityForm;
import com.youlai.system.model.vo.CityVO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface CityConverter {
    Page<CityVO> entity2Page(Page<City> CityPage);

    City form2Entity(CityForm CityForm);

    CityForm entity2Form(City city);
}
